import request from '@/utils/request'

export function getAllList() {
  return request({
    url: '/api/queryTrain',
    method: 'get',
  })
}

export function getList(data) {
    return request({
      url: '/api/queryTrain',
      method: 'post',
      data
    })
  }

export function addTrain(data) {
  return request({
    url: '/api/addTrain',
    method: 'post',
    data
  })
}

export function deleteTrain(data) {
  return request({
    url: '/api/deleteTrain',
    method: 'post',
    data
  })
}

export function editTrain(data) {
  return request({
    url: '/api/editTrain',
    method: 'post',
    data
  })
}

export function queryTrain(data) {
  return request({
    url: '/api/user/queryTrain',
    method: 'post',
    data
  })
}

export function querySeat(data) {
  return request({
    url: '/api/querySeat',
    method: 'post',
    data
  })
}

export function queryCarriage(data) {
  return request({
    url: '/api/user/querySeatInfo',
    method: 'post',
    data
  })
}

export function deleteCarriage(data) {
  return request({
    url: '/api/deleteSeat',
    method: 'post',
    data
  })
}
export function addCarriage(data) {
  return request({
    url: '/api/addSeat',
    method: 'post',
    data
  })
}
export function editCarriage(data) {
  return request({
    url: '/api/editSeat',
    method: 'post',
    data
  })
}
export function queryAllCarriage() {
  return request({
    url: '/api/user/querySeatInfo',
    method: 'get',
  })
}

export function queryTransfer(data) {
  return request({
    url: '/api/user/transfer',
    method: 'post',
    data
  })
}



export function queryParking(data) {
  return request({
    url: '/api/user/queryParking',
    method: 'post',
    data
  })
}